3.69 \(\int \frac {\cos (a+b x^n)}{x} \, dx\)

Optimal. Leaf size=26 \[ \frac {\cos (a) \text {Ci}\left (b x^n\right )}{n}-\frac {\sin (a) \text {Si}\left (b x^n\right )}{n} \]

[Out]

Ci(b*x^n)*cos(a)/n-Si(b*x^n)*sin(a)/n

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3378, 3376, 3375} \[ \frac {\cos (a) \text {CosIntegral}\left (b x^n\right )}{n}-\frac {\sin (a) \text {Si}\left (b x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

Int[Cos[a + b*x^n]/x,x]

[Out]

(Cos[a]*CosIntegral[b*x^n])/n - (Sin[a]*SinIntegral[b*x^n])/n

Rule 3375

Int[Sin[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[SinIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3376

Int[Cos[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[CosIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3378

Int[Cos[(c_) + (d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Dist[Cos[c], Int[Cos[d*x^n]/x, x], x] - Dist[Sin[c], Int[Si
n[d*x^n]/x, x], x] /; FreeQ[{c, d, n}, x]

Rubi steps

\begin {align*} \int \frac {\cos \left (a+b x^n\right )}{x} \, dx &=\cos (a) \int \frac {\cos \left (b x^n\right )}{x} \, dx-\sin (a) \int \frac {\sin \left (b x^n\right )}{x} \, dx\\ &=\frac {\cos (a) \text {Ci}\left (b x^n\right )}{n}-\frac {\sin (a) \text {Si}\left (b x^n\right )}{n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 24, normalized size = 0.92 \[ \frac {\cos (a) \text {Ci}\left (b x^n\right )-\sin (a) \text {Si}\left (b x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[a + b*x^n]/x,x]

[Out]

(Cos[a]*CosIntegral[b*x^n] - Sin[a]*SinIntegral[b*x^n])/n

________________________________________________________________________________________

fricas [A]  time = 1.31, size = 35, normalized size = 1.35 \[ \frac {\cos \relax (a) \operatorname {Ci}\left (b x^{n}\right ) + \cos \relax (a) \operatorname {Ci}\left (-b x^{n}\right ) - 2 \, \sin \relax (a) \operatorname {Si}\left (b x^{n}\right )}{2 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)/x,x, algorithm="fricas")

[Out]

1/2*(cos(a)*cos_integral(b*x^n) + cos(a)*cos_integral(-b*x^n) - 2*sin(a)*sin_integral(b*x^n))/n

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (b x^{n} + a\right )}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)/x,x, algorithm="giac")

[Out]

integrate(cos(b*x^n + a)/x, x)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 25, normalized size = 0.96 \[ \frac {-\Si \left (b \,x^{n}\right ) \sin \relax (a )+\Ci \left (b \,x^{n}\right ) \cos \relax (a )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a+b*x^n)/x,x)

[Out]

1/n*(-Si(b*x^n)*sin(a)+Ci(b*x^n)*cos(a))

________________________________________________________________________________________

maxima [C]  time = 1.74, size = 90, normalized size = 3.46 \[ \frac {{\left ({\rm Ei}\left (i \, b x^{n}\right ) + {\rm Ei}\left (-i \, b x^{n}\right ) + {\rm Ei}\left (i \, b e^{\left (n \overline {\log \relax (x)}\right )}\right ) + {\rm Ei}\left (-i \, b e^{\left (n \overline {\log \relax (x)}\right )}\right )\right )} \cos \relax (a) + {\left (i \, {\rm Ei}\left (i \, b x^{n}\right ) - i \, {\rm Ei}\left (-i \, b x^{n}\right ) + i \, {\rm Ei}\left (i \, b e^{\left (n \overline {\log \relax (x)}\right )}\right ) - i \, {\rm Ei}\left (-i \, b e^{\left (n \overline {\log \relax (x)}\right )}\right )\right )} \sin \relax (a)}{4 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)/x,x, algorithm="maxima")

[Out]

1/4*((Ei(I*b*x^n) + Ei(-I*b*x^n) + Ei(I*b*e^(n*conjugate(log(x)))) + Ei(-I*b*e^(n*conjugate(log(x)))))*cos(a)
+ (I*Ei(I*b*x^n) - I*Ei(-I*b*x^n) + I*Ei(I*b*e^(n*conjugate(log(x)))) - I*Ei(-I*b*e^(n*conjugate(log(x)))))*si
n(a))/n

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {\cos \left (a+b\,x^n\right )}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a + b*x^n)/x,x)

[Out]

int(cos(a + b*x^n)/x, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos {\left (a + b x^{n} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x**n)/x,x)

[Out]

Integral(cos(a + b*x**n)/x, x)

________________________________________________________________________________________